package lj.fx.tool.component;

import javafx.scene.effect.DropShadow;
import javafx.scene.paint.Color;
import javafx.scene.shape.Ellipse;

/**
 * 圆
 */
public class ComEllipse extends Ellipse {

    public static ComEllipse randomShape() {
        ComEllipse shape = new ComEllipse();


        DropShadow ds = new DropShadow();
        ds.setOffsetY(3.0);
        ds.setColor(Color.color(0.4, 0.4, 0.4));
//更多请阅读：https://www.yiibai.com/javafx/javafx_rectangle.html


        shape.setCenterX(50.0f);
        shape.setCenterY(50.0f);
        shape.setRadiusX(50.0f);
        shape.setRadiusY(25.0f);
        shape.setEffect(ds);
//更多请阅读：https://www.yiibai.com/javafx/javafx_rectangle.html

        return shape;
    }

}
